package com.hospital.common.domain.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @Author：sjc
 * @Description:
 * @name：Doctor
 * @Date：2024/10/18 22:28
 */
@Data
@TableName("elt_doctor")
@Validated
public class Doctor {
    @TableId(type = IdType.AUTO)
    private Long id;  //编号
    @NotBlank(message = "账号不能为空")
    private String account;  //账号
    @NotBlank(message = "密码不能为空")
    private String password;  //密码
    @NotBlank(message = "医生姓名不能为空")
    private String doctorName;  //医生姓名
    @NotBlank(message = "等级不能为空")
    private String level;  //等级
    @NotBlank(message = "部门id不能为空")
    private Integer departmentId;  //部门id
    private Integer status;  //是否开启会诊
    private Integer reserve;  //是否接受预定
    private String image;  //头像图片
    @NotBlank(message = "性别不能为空")
    private Integer sex;  //性别 0-未知 1-男  2-女  3-保密
    @NotBlank(message = "年龄不能为空")
    private BigDecimal age;  //年龄
    @NotBlank(message = "角色不能为空")
    private Integer role;

    //TODO 医生资格证校验
}
